package com.woniuxy.entity;

import java.util.Date;
import java.io.Serializable;

/**
 * 用户聊天消息表(ChatMessage)实体类
 *
 * @author makejava
 * @since 2025-07-10 10:06:30
 */
public class ChatMessage implements Serializable {
    private static final long serialVersionUID = -68474081421071044L;
    /**
     * 消息ID
     */
    private String id;
    /**
     * 发送方
     */
    private String fromUserId;
    /**
     * 接收方
     */
    private String toUserId;
    /**
     * 消息内容
     */
    private String content;
    /**
     * 是否已读（0: 未读, 1: 已读）
     */
    private Integer isRead;
    /**
     * 发送时间
     */
    private Date createTime;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getFromUserId() {
        return fromUserId;
    }

    public void setFromUserId(String fromUserId) {
        this.fromUserId = fromUserId;
    }

    public String getToUserId() {
        return toUserId;
    }

    public void setToUserId(String toUserId) {
        this.toUserId = toUserId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getIsRead() {
        return isRead;
    }

    public void setIsRead(Integer isRead) {
        this.isRead = isRead;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

}

